#include<stdio.h>
long fun(int n)
{
	static long t=1;
	t=t*n;
	return t;
}
void main()
{
	int n,i;
	scanf("%d",&n);
	for(i=1;i<=n;i++)
		printf("%d!=%ld\n",i,fun(i));
}
